/*
 * User.java
 *
 * Created on 7 październik 2007, 12:51
 *
 */

package kosciak.blip4j;

/**
 * <CODE>User</CODE> object represents a user in Blip.pl
 * Contains only the most important data - Login and Id
 * @author Wojtek 'KosciaK' Pietrzok
 * @since 0.1
 */
public abstract class User {
    
    private int id;
    private String login;
    
    /**
     * Creates a new instance of User
     * @param login The login of the user
     * @param id The Id number of the user
     */
    protected User(int id, 
                   String login) {
        
        this.id = id;
        this.login = login;
    }

    /**
     * Gets User's Id number
     * @return an Id of a user
     */
    public int getId() {
        return id;
    }

    /**
     * Gets User's login name
     * @return login name of a user
     */
    public String getLogin() {
        return login;
    }
    
    @Override
    public String toString() {
        return getLogin();
    }

}
